{{#if this.templatesVisible}}
  <div class="d-templates-container">
    <DButton
      class="modal-close close btn-flat"
      @action={{action "hide"}}
      @icon="xmark"
    />
    <DTemplates::FilterableList
      @onInsertTemplate={{this.onInsertTemplate}}
      @onAfterInsertTemplate={{action "hide"}}
    />
  </div>
{{/if}}